﻿#include "Unary_Oper_Node.h"

std::string Unary_Oper_Node::generatePrefix() const
{
	std::string reStr;
	reStr += type;
	reStr += this->getChild()->getType();
	return reStr;
}

std::string Unary_Oper_Node::generateInfix() const
{
	std::string reStr;
	reStr += type;
	reStr += this->getChild()->getType();
	return reStr;
}

std::string Unary_Oper_Node::generatePostfix() const
{
	std::string reStr;
	reStr += this->getChild()->getType();
	reStr += type;
	return reStr;
}
